import {
  storeBindingsBehavior
} from 'mobx-miniprogram-bindings'
import {
  store
} from '../../store/store'
import {
  getGoodsList
} from "../../api/goods"
Component({
  behaviors: [storeBindingsBehavior],
  storeBindings: {
    store,
    fields: ["numA"],
    actions: {
      buttonTap: 'update'
    },
  },
  /**
   * 组件的属性列表
   */
  properties: {
    title: String,
    list: Array,
  },

  /**
   * 组件的初始数据
   */
  data: {
    goodsList: []
  },

  /**
   * 组件的方法列表
   */
  methods: {

  },
  lifetimes: {
    // async attached(){
    //   const list=await getGoodsList(1,10)
    //   this.setData({
    //     goodsList:list
    //   })
    // }
  }

})